package com.wyl.niupi.framework.tools.helper;

/**
 * @author 吴宇亮 on 2020/11/25 15:47
 */

import lombok.Data;

/**
 * 用来存储数据库表结构的vo，辅助生成mysql的javabean
 * @author 吴宇亮 on 2019/6/26 22:02
 */
@Data
public class FieldForGeneratorMysql {

    private String isNullable;
    private String extra;
    private String columnName;
    private String columnRealName;
    private String columnType;
    private String columnRealType;
    private String columnKey;
    private String columnDefault;
    private String comment;

    /** 静态变量字段名称，映射数据库的字段 **/
    private String uppercaseName;
    /** 字段对应的getter方法名 **/
    private String getterMethodName;
    /** 字段对应的setter方法名 **/
    private String setterMethodName;
    /** 当前字段是否为主键 **/
    private Boolean isPrimaryKey;

    public static final String CHAR = "char";
    public static final String VARCHAR = "varchar";
    public static final String INT = "int";
    public static final String DECIMAL = "decimal";
    public static final String DATE = "date";
}